package lecture03.test;

import java.util.Scanner;

public class PositiveNegativeCount {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int positiveCount = 0;
        int negativeCount = 0;
        int number;
        do {
            System.out.println("Enter number:");
            number = sc.nextInt();
            if (number > 0) {
                positiveCount++;
            }else if (number < 0) {
                negativeCount++;
            }
        } while (number != 0);
        System.out.println("positiveCount="+positiveCount);
        System.out.println("negativeCount="+negativeCount);
    }
}
